function initMapPoint(map_name,poiSelf,poiList,center,mapType='recPoi',hasPolyLine=false,showInfoWindow=false) {

    $("#"+map_name).css("height",'300px');
    var map = null;
    try{
        map = new google.maps.Map(
            document.getElementById(map_name),
            {center: center,zoom:8}
        );
    }catch{
        return false;
    }

    var features = [];
    //渲染本身
    var icon = {
        url : '/icon/map_marker_green.png',
        scaledSize: new google.maps.Size(27, 43), // scaled size
    }

    var class_name = '';
    if(mapType=='recPoi'){
        class_name = 'mapPoi';
    }
    $.each(poiList,function(i,v){
        if(v.lat!='' && v.lat!=null && v.lng!='' && v.lng!=null){
            features.push({
                position:new google.maps.LatLng(parseFloat(v.lat), parseFloat(v.lng)),
                type: 'info',
                content:"<p class='"+class_name+"' data-id='"+v.id+"'>"+v.name+"("+v.eng_name+")<p>"
            })
        }
    })
    var markers = [];
    for (var i = 0; i < features.length; i++) {
        var marker = new google.maps.Marker({
            position: features[i].position,
            // icon: icons[features[i].type].icon,
            map: map
        });
        var content = features[i].content;
        //展示悬浮框
        var infowindow = new google.maps.InfoWindow;
        clickMarker(marker,content);
        markers.push(marker);
        if(showInfoWindow){
            infowindow.setContent(content);
            infowindow.open(map,marker);
        }
    };

    function clickMarker(marker,content)
    {
        var infoWindow = new google.maps.InfoWindow;
        google.maps.event.addListener(marker,'click',function(){
            infoWindow.setContent(content);
            infoWindow.open(map,marker);
        })
    }
    //展示最佳视野的函数
    function setVeiwPort(markers) {
        var bounds = new google.maps.LatLngBounds();
        //读取标注点的位置坐标，加入LatLngBounds
        for(var i = 0;i < markers.length;i++){
            bounds.extend(markers[i].getPosition());
        }
        //调整map，使其适应LatLngBounds,实现展示最佳视野的功能
        map.fitBounds(bounds);
    }
    //setVeiwPort(markers);

    if(hasPolyLine){
        var flightPlanCoordinates = [];
        $.each(poiList,function(i,v){
            flightPlanCoordinates.push({'lat':parseFloat(v.lat),'lng':parseFloat(v.lng)});
        })
        var flightPath = new google.maps.Polyline({
            path: flightPlanCoordinates,
            geodesic: true,
            strokeColor: '#FF0000',
            strokeOpacity: 1.0,
            strokeWeight: 2
        });
        flightPath.setMap(map);
    }

    if(!hasPolyLine){
        var circle = new google.maps.Circle({
            strokeColor: '#00FF00',
            strokeOpacity: 0.8,
            strokeWeight: 2,
            fillColor: '#00FF00',
            fillOpacity: 0.2,
            map: map,
            center: poiSelf,
            radius: 50000
        });
    }
    //最后渲染起始点 防止被覆盖
    var selfMarker = new google.maps.Marker({
        position: poiSelf,
        icon:icon,
        map: map
    });
    //clickMarker(selfMarker,poiSelf.name+"("+poiSelf.eng_name+")");
}


